package com.hoas.api.core.entity;

import java.util.List;

import  com.hoas.api.core.exception.UserAuthCreateException;

/**
 * 用户授权
 * @author ZhangQingmu
 * @date   2016年10月23日
 *
 */
public class UserAuth {
	private String user;
	private List<String> apis;

	public UserAuth(String user) throws UserAuthCreateException {
		
		if(user == null || "".equals(user)) {
			throw new UserAuthCreateException();
		}
		
		this.user = user;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public List<String> getApis() {
		return apis;
	}

	public void setApis(List<String> apis) {
		this.apis = apis;
	}
	
}
